home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
pcv05n09.zip
/
FIXLIST.BAT
next >
Wrap
DOS Batch File
|
1993-06-13
|
1KB
|
43 lines
@echo off
cls
rem FIXLIST.BAT line deletion routine for LST.TXT files
if %1!==! goto :trap
echo ~~~~~~~~~~~~~~~~~~~~~
echo FIXLIST
echo ~~~~~~~~~~~~~~~~~~~~~
echo Line deletion routine for phone numbers that are no longer needed.
echo .........
echo **** CTRL-C or CTRL-BREAK to exit without deleting numbers. ****
echo (A copy of the original file will be saved as LST.OLD)
echo .........
echo Press any key to delete the line.
pause > nul
copy c:\batch\lst.txt c:\batch\lst.old
find /v "%1" < c:\batch\lst.txt > lst.###
sort < lst.### > c:\batch\lst.sor
copy lst.### c:\batch\lst.txt
del lst.###
cls
echo.
echo The line containing %1 is now deleted.
echo.
echo Press any key to see new sorted file now.
pause > nul
call getme
goto :end
:trap
echo.
echo INCOMPLETE ENTRY FOR LINE DELETION.........
echo.
echo Type FIXLIST, a blank space, a name or phone number
echo you want to delete from the list.
echo Don't use blank spaces in the name or number.
echo.
echo EXAMPLE:
echo To remove "Mason, Perry.....900-555-1023" use any of these lines:
echo FIXLIST Mason
echo FIXLIST Perry
echo FIXLIST 555-1023
echo.
echo Note: this process is case sensitive
:end